package com.wondertek.poms.service.vo;

import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

/**
 * @author evan0213
 * @description
 */
@Data
public class PrdRuleSecondClassifyVo {

	@NotNull(message = "二级分类id不能为空", groups = {GroupType.Update.class})
	private Long id; //id

	@NotNull(message = "二级分类规则ID不能为空", groups = {GroupType.Update.class})
	private Long prdRuleId;  //规则ID

	/**
	 * 二级分类键
	 */
	@NotBlank(message = "二级分类键不能为空", groups = {Default.class, GroupType.Update.class})
	private String key;

	/**
	 * 1筛选条件 2排除条件(仅在释放条件中配置)
	 */
	@NotBlank(message = "类型不能为空", groups = {Default.class, GroupType.Update.class})
	private String type;

	/**
	 * 二级分类值
	 */
	@NotBlank(message = " 二级分类值不能为空", groups = {Default.class, GroupType.Update.class})
	private String values;
}
